package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.MaterialConfig;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface MaterialConfigMapper {
    int insert(MaterialConfig materialConfig);

    MaterialConfig getById(@Param("id") Long id, @Param("merId") Long merId);

    int update(MaterialConfig materialConfig);

    MaterialConfig getByMerIdAndChildId(@Param("merId") Long merId, @Param("childId") Long childId);

}
